<template>
<div class="date-cp">
    {{filterDate(date)}}
</div>
</template>

<script>
/*
 日期展示组件
 */
import {formatDateByTimestamp} from '@/common/DateTools';
export default {
    props:{
        date:{ 
            type:String,
            default:'',
        },
    },
    methods:{
        filterDate(date){
            if(!date) return date;
            return formatDateByTimestamp(date);
        },
    },
}
</script>
<style lang="scss" scoped>
.date-cp{
    font-size: 1.1rem;
    color: #899bb4;
}
</style>

